<?php if(!defined('IN_DISCUZ')) exit('Access Denied'); $mysiteBM = currentlang()?><?php require_once(DISCUZ_ROOT."./template/qu_app/touch/ainuo/lang/$mysiteBM.php");?><?php if(is_array($adata)) foreach($adata as $key => $list) { ?>   <?php if(is_array($list['threadlist'])) foreach($list['threadlist'] as $key => $thread) { ?>           <?php include(DISCUZ_ROOT."./template/qu_app/touch/ainuo/appme.php");?><li>
<div class="author cl">
                            <div class="aleft">
                                <div class="ava">
                                	<?php if(!$thread['authorid']) { ?>
                                    <a href="javascript:;"><?php echo avatar(0, 'middle');?></a>
                                    <?php } elseif(!$thread['author']) { ?>
                                        <?php if($_G['forum']['ismoderator']) { ?>
                                            <a href="home.php?mod=space&amp;uid=<?php echo $thread['authorid'];?>"><?php echo avatar($thread[authorid], $thread[authorid]);?></a>			
                                        <?php } else { ?>
                                            <a href="javascript:;"><?php echo avatar(0, 'middle');?></a>
                                        <?php } ?>
                                    <?php } else { ?>
                                    <a <?php echo $app_userurlist;?>><?php echo avatar($thread[authorid], 'middle');?></a>
                                    
                                    <?php } ?>
                                	
                                </div>
                                <span class="t">
                                <?php if(!$thread['authorid']) { ?>
                                <a href="javascript:;"><?php echo $alang_youke;?></a>
                                <?php } elseif(!$thread['author']) { ?>
                            		<?php if($_G['forum']['ismoderator']) { ?>
                                		<a href="home.php?mod=space&amp;uid=<?php echo $thread['authorid'];?>"><?php echo $alang_niming;?></a>			
                                	<?php } else { ?>
                                		<a href="javascript:;"><?php echo $alang_niming;?></a>
                                    <?php } ?>
                                <?php } else { ?>
                                <a <?php echo $app_userurlist;?> <?php if($groupcolor[$thread['authorid']]) { ?> style="color: <?php echo $groupcolor[$thread['authorid']];?>;"<?php } ?>><?php echo $thread['author'];?></a>
                                
                                <?php } ?>
                                </span> 
                                <?php $thread[agroupid] = DB::result_first('SELECT groupid FROM '.DB::table('common_member').' WHERE uid='.$thread[authorid].'')?>                                <?php if($thread['agroupid']) { ?>
    <?php $thread[astars] = DB::result_first('SELECT stars FROM '.DB::table('common_usergroup').' WHERE groupid='.$thread[agroupid].'')?>                                <?php } else { ?>
                                <?php $thread[astars] = 0?>                                <?php } ?>
                                <?php if($thread['astars']) { ?>
                                <div class="mod-lv user-level">
                                    <span class="mod-lv-icon"><i class="iconfont icon-evaluate_fill"></i></span>
                                    <span><?php echo $thread['astars'];?></span>
                                </div>
                                <?php } ?>
                                <p><span><?php echo $thread['dateline'];?></span></p>
                            </div>
                            <?php if($thread['authorid'] && $thread['author']) { ?>
                            <div class="aright">
                                <?php $follow = 0;?>                                        <?php $follow = C::t('home_follow')->fetch_all_by_uid_followuid($_G['uid'], $thread['authorid']);?>                                        <?php if(!$follow) { ?>
                                            <a id="ainuo_wait_<?php echo $thread['tid'];?>" class="gz_<?php echo $thread['authorid'];?> jgz" onclick="guanzhutis('ainuo_wait_<?php echo $thread['tid'];?>','gz_<?php echo $thread['authorid'];?>','<?php echo $thread['authorid'];?>')" href="javascript:;">+ <?php echo $alang_gz;?></a>
                                        <?php } else { ?>
                                            <a id="ainuo_wait_<?php echo $thread['tid'];?>" class="gz_<?php echo $thread['authorid'];?> ygz" onclick="guanzhutis('ainuo_wait_<?php echo $thread['tid'];?>','gz_<?php echo $thread['authorid'];?>','<?php echo $thread['authorid'];?>')" href="javascript:;" ><?php echo $alang_yiguanzhu;?></a>
                                <?php } ?>
                            </div>
                            <?php } ?>
                        </div>

                    <a <?php echo $app_threadurl;?> class="litwo cl">
                        <div class="asub">
                            <div class="atitle" <?php echo $thread['highlight'];?>>
                            <?php if($thread['digest'] > 0) { ?>
                                <span class="abadge"><?php echo $alang_newjinghua;?></span> 
                                <?php } elseif($thread['displayorder'] == 0) { ?>
                                    <?php if($thread['recommendicon'] && $filter != 'recommend') { ?>
                                        <span class="abadge">荐</span>
                                    <?php } ?>
                                    <?php if($thread['heatlevel']) { ?>
                                        <span class="abadge">热度</span>
                                    <?php } ?>
                                    <?php if($thread['rate'] > 0) { ?>
                                        <span class="abadge">帖子被加分</span>
                                    <?php } elseif($thread['rate'] < 0) { ?>
                                        <span class="abadge">帖子被减分</span>
                                    <?php } ?>
                                <?php } ?>
                                <?php if($thread['special'] == 1) { ?>
                                    <span class="abadge leixing">投票</span>
                                <?php } elseif($thread['special'] == 2) { ?>
                                    <span class="abadge leixing">商品</span>
                                <?php } elseif($thread['special'] == 3) { ?>
                                    <span class="abadge leixing">悬赏</span>
                                <?php } elseif($thread['special'] == 4) { ?>
                                    <span class="abadge leixing">活动</span>
                                <?php } elseif($thread['special'] == 5) { ?>
                                    <span class="abadge leixing">辩论</span>
                                <?php } ?>
                            <?php echo $thread['subject'];?></div>
                        </div>
                        <?php echo $thread['image'];?>
</a>
                    <div class="abot cl">
                            <?php include(DISCUZ_ROOT."./template/qu_app/touch/ainuo/good.php");?>                            <a href="javascript:;" class="ainuo_nologin rp">
                            	<i class="iconfont icon-comment_light"></i><?php echo $thread['replies'];?><?php echo $alang_reply;?>
                            </a>
                            <a <?php echo $app_threadurl;?> class="rp">
                            	<i class="iconfont icon-attention_light"></i><?php echo $thread['views'];?><?php echo $alang_view;?>
                            </a>
                            <a id="dianzan_<?php echo $thread['tid'];?>" onclick="zanbuzan('dianzan_<?php echo $thread['tid'];?>','red_<?php echo $thread['tid'];?>','<?php echo $thread['tid'];?>')" href="javascript:;" class="dianzan <?php if($iszan) { ?>yidianzan<?php } ?>"><i id="i_<?php echo $thread['tid'];?>" class="iconfont icon-appreciate_light <?php if($iszan) { ?>icon-appreciate_fill_light<?php } ?>"></i> <span id="red_<?php echo $thread['tid'];?>"><?php echo $thread['recommend_add'];?><?php echo $alang_zan;?></span></a>
                    </div>
                    <div class="grey_line cl"></div>
</li>
                <?php } ?>
                <?php } ?>